<?php
header("Content-type:text/html;charset=utf-8");
session_start();
$sjh = $_SESSION['sjh'];
$money=$_POST['v'];
$din = "mysql:host=127.0.0.1;dbname=zgr";
$name = "root";
$password = "root";
$pdo = new PDO($din,$name,$password);
$res = $pdo->query("select * from lx8_may sjh='$sjh' and money >='$money' ")->fetch(PDO::FETCH_ASSOC);
if($res)
{
    echo 'yes';
}
else
{
    echo 'no';
}


?>